<?php
class Home extends CI_Controller{
    //put your code here

    public function  __construct() {
        parent::__construct();
        //parent::controller();
        $this->load->library("my_layout"); 
        $this-> my_layout->setLayout("layouts/layout.ctp"); 
    }

    // Controller mặc định cho trang chủ
    public function index(){
        $data['title'] = "Trang chủ";
        $data['data'] = "Dữ liệu trang home";
        
        $this-> my_layout->view("home/pages_index.ctp",$data);
    }

    
   public function about(){
        $data['title'] = "Giới thiệu";
        $this-> my_layout->view("frontend/about",$data);
    }
    
    
    public function services(){
        $data['title'] = "Dịch vụ";
        $this-> my_layout->view("frontend/services",$data);
    }

}
?>